package com.ruoyi.base.service.impl;

import java.util.Collections;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.base.mapper.BusWaterItemMapper;
import com.ruoyi.base.domain.BusWaterItem;
import com.ruoyi.base.service.IBusWaterItemService;

/**
 * 监测项基础信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-02
 */
@Service
public class BusWaterItemServiceImpl implements IBusWaterItemService 
{
    @Autowired
    private BusWaterItemMapper busWaterItemMapper;

    /**
     * 查询监测项基础信息
     * 
     * @param id 监测项基础信息主键
     * @return 监测项基础信息
     */
    @Override
    public BusWaterItem selectBusWaterItemById(String id)
    {
        return busWaterItemMapper.selectBusWaterItemById(id);
    }

    /**
     * 查询监测项基础信息列表
     * 
     * @param busWaterItem 监测项基础信息
     * @return 监测项基础信息
     */
    @Override
    public List<BusWaterItem> selectBusWaterItemList(BusWaterItem busWaterItem)
    {
        return busWaterItemMapper.selectBusWaterItemList(busWaterItem);
    }

    /**
     * 新增监测项基础信息
     * 
     * @param busWaterItem 监测项基础信息
     * @return 结果
     */
    @Override
    public int insertBusWaterItem(BusWaterItem busWaterItem)
    {
        return busWaterItemMapper.insertBusWaterItem(busWaterItem);
    }

    /**
     * 修改监测项基础信息
     * 
     * @param busWaterItem 监测项基础信息
     * @return 结果
     */
    @Override
    public int updateBusWaterItem(BusWaterItem busWaterItem)
    {
        return busWaterItemMapper.updateBusWaterItem(busWaterItem);
    }

    /**
     * 批量删除监测项基础信息
     * 
     * @param ids 需要删除的监测项基础信息主键
     * @return 结果
     */
    @Override
    public int deleteBusWaterItemByIds(String[] ids)
    {
        return busWaterItemMapper.deleteBusWaterItemByIds(ids);
    }

    /**
     * 删除监测项基础信息信息
     * 
     * @param id 监测项基础信息主键
     * @return 结果
     */
    @Override
    public int deleteBusWaterItemById(String id)
    {
        return busWaterItemMapper.deleteBusWaterItemById(id);
    }

    @Override
    public List<BusWaterItem> DistinctItemlist(BusWaterItem busWaterItem) {
        return busWaterItemMapper.DistinctItemlist(busWaterItem);
    }
}
